package org.management.system.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.management.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 功能描述
 * 用户关联角色模块
 * @author jiangyan
 * @date 2019/03/14
 * @description
 * @project management
 */
@Data
@ApiModel(value="用户关联角色")
@EqualsAndHashCode(callSuper = true)
@Table(name = "sys_user_role")
public class UserRoleEntity extends BaseEntity {
    /**
     * 角色ID
     */
    @Column(name = "ROLE_ID")
    @ApiModelProperty(value = "角色ID",name = "roleId")
    private String roleId;

    /**
     * 用户ID
     */
    @Column(name = "USER_ID")
    @ApiModelProperty(value = "用户ID",name = "userId")
    private String userId;

    /**
     * 是否默认角色
     */
    @Column(name = "IS_DEFAULT")
    @ApiModelProperty(value = "是否默认角色",name = "isDefault")
    private Boolean isDefault;
}